From 64ec9e20987072692227d8817d9fd99d497fea5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:00:35 +0200 Subject: Update the tests --- tests/cassettes/test_media_post[False].yaml | 61 +++++++++++++++-------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'tests/cassettes/test_media_post[False].yaml') diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index c8bff3c..883bb32 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml @@ -1,11 +1,11 @@ interactions: - request: body: !!binary | - LS03MmY5NDMxODgxNTU0YWIyOGMwYjMzNTE3ZWVkZjg5Nw0KQ29udGVudC1EaXNwb3NpdGlvbjog + LS1jMGVmMTE3MWEyZGU0ZWRhYjNkMTRhNjkxN2M4ZjI4MQ0KQ29udGVudC1EaXNwb3NpdGlvbjog Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u - eSB3YWxrDQotLTcyZjk0MzE4ODE1NTRhYjI4YzBiMzM1MTdlZWRmODk3DQpDb250ZW50LURpc3Bv + eSB3YWxrDQotLWMwZWYxMTcxYTJkZTRlZGFiM2QxNGE2OTE3YzhmMjgxDQpDb250ZW50LURpc3Bv c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpbGUiOyBmaWxlbmFtZT0ibWFzdG9kb25weXVwbG9h - ZF8xNTExODIxOTg2LjE1NDU1ODdfRzJTTUhPQUFPMC5qcGUiDQpDb250ZW50LVR5cGU6IGltYWdl + ZF8xNTI0MDgxMjQwLjA0NTQ5OTZfQlhBSFo4WFJSNC5qcGciDQpDb250ZW50LVR5cGU6IGltYWdl L2pwZWcNCg0K/9j/4AAQSkZJRgABAQEASABIAAD/4gIcSUNDX1BST0ZJTEUAAQEAAAIMbGNtcwIQ AABtbnRyUkdCIFhZWiAH3AABABkAAwApADlhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA @@ -941,88 +941,89 @@ interactions: Nw9uK/d6VKF+REG2SAwKYaVKiiOpiDcI/WGDldqDC5Jll6PU33pUqB4cpFlKKL0Ezt96naIry7pj r0/FKlRVm2x2hKJA7c3+ajMuFwjExI3z2z4pUqBThcwcsc4UXstVlEmsVXbalSoGgoogq5yuaZMD Exl+KVKgU7bGJy4yeMVK1gxmQdXdc/ilSoLllt3LczAm+7tTQCMBJMt87L1pUqCM8LliP2KYJMiP - KsZOMGf1pUqBjT3G6OOjnm7O9KlSoP/ZDQotLTcyZjk0MzE4ODE1NTRhYjI4YzBiMzM1MTdlZWRm - ODk3LS0NCg== + KsZOMGf1pUqBjT3G6OOjnm7O9KlSoP/ZDQotLWMwZWYxMTcxYTJkZTRlZGFiM2QxNGE2OTE3Yzhm + MjgxLS0NCg== headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['53644'] - Content-Type: [multipart/form-data; boundary=72f9431881554ab28c0b33517eedf897] - User-Agent: [python-requests/2.18.4] + Content-Type: [multipart/form-data; boundary=c0ef1171a2de4edab3d14a6917c8f281] + User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/media response: - body: {string: '{"id":"13","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/013/original/c9f74b7858e3700e.jpe","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/013/small/c9f74b7858e3700e.jpe","remote_url":null,"text_url":"http://localhost:3000/media/5lQdMadbSY-Su5wJVLY","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"40","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/040/original/a1040ba5ad3e3e5e.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/040/small/a1040ba5ad3e3e5e.jpg","remote_url":null,"text_url":"http://localhost:3000/media/vnBo7WXeJQ1Aulad8N0","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"d5e3757c87b3fe9ee4292d0148d230ca"] + ETag: [W/"5078f551e450b25a8badc1f597790c4b"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [038cd34a-803a-4000-8c46-3aeee138ee32] - X-Runtime: ['0.176521'] + X-Request-Id: [9a8a0645-8ecd-4d55-8386-5c35d6bb14b3] + X-Runtime: ['0.376832'] X-XSS-Protection: [1; mode=block] content-length: ['505'] status: {code: 200, message: OK} - request: - body: visibility=&status=LOL+check+this+out&media_ids%5B%5D=13 + body: status=LOL+check+this+out&media_ids%5B%5D=40 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['56'] + Content-Length: ['44'] Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99078765698573565","created_at":"2017-11-27T22:33:06.375Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99078765698573565","content":"\u003cp\u003eLOL - check this out\u003c/p\u003e","url":"http://localhost:3000/@admin/99078765698573565","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello - :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":47},"media_attachments":[{"id":"13","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/013/original/c9f74b7858e3700e.jpe","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/013/small/c9f74b7858e3700e.jpe","remote_url":null,"text_url":"http://localhost:3000/media/5lQdMadbSY-Su5wJVLY","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"99882188178375346","created_at":"2018-04-18T19:54:00.537Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882188178375346","content":"\u003cp\u003eLOL + check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188178375346","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[{"id":"40","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/040/original/a1040ba5ad3e3e5e.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/040/small/a1040ba5ad3e3e5e.jpg","remote_url":null,"text_url":"http://localhost:3000/media/vnBo7WXeJQ1Aulad8N0","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"2634fb83c1afe6f26e2b36f51f177af1"] + ETag: [W/"714a1ecc456aeb987781ed1a0e93d479"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3b466137-a5c6-4809-b659-f73083338c61] - X-Runtime: ['0.071875'] + X-Request-Id: [51f337a9-0eb6-4f4a-a2ac-802c47176506] + X-Runtime: ['0.255879'] X-XSS-Protection: [1; mode=block] - content-length: ['1734'] + content-length: ['1915'] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99078765698573565 + uri: http://localhost:3000/api/v1/statuses/99882188178375346 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6c35e00c97505736b22877b8414d02b9"] + ETag: [W/"3f5c56968564b846d401a6eb88033e84"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3205e641-b7b2-4e4c-bb69-e6dc2b5c8186] - X-Runtime: ['0.018551'] + X-Request-Id: [96cc8af0-151d-48f1-a9d4-96f73952dcd4] + X-Runtime: ['0.043264'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3